package com.bailong.administrator.ausedcar.ui.homepagefragment;

import com.bailong.administrator.ausedcar.bean.HomeHotBean;
import com.bailong.administrator.ausedcar.bean.HomeLikeBean;
import com.bailong.administrator.ausedcar.bean.HomeShowBean;
import com.bailong.administrator.ausedcar.http.HttpUtils;

import java.util.Map;

import retrofit2.Callback;

/**
 * Created by Administrator on 2016/9/6.
 */
public class HomeMode implements HomeContract.Mode {
    @Override
    public void loadHomeLikeBean(Callback<HomeLikeBean> callback, Map<String,String> map) {
        HttpUtils.newInstance().loadHomeLikeBean(callback,map);
    }

    @Override
    public void loadHomeHotBean(Callback<HomeHotBean> callback, Map<String, String> map) {
        HttpUtils.newInstance().loadHomeHotBean(callback,map);
    }

    @Override
    public void loadHomeShowBean(Callback<HomeShowBean> callback, Map<String, String> map) {
        HttpUtils.newInstance().loadHomeShowBean(callback, map);
    }
}
